package com.ossjk.qlh.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ossjk.core.base.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author chair
 * @since 2020-02-07
 */
@ApiModel(value = "角色")
public class Role extends BaseEntity<Role> {

	private static final long serialVersionUID = 1L;

	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名", required = true)
	@TableField("name")
	private String name;
	/**
	 * 父id
	 */
	@ApiModelProperty(value = "父id", required = true)
	@TableField("pid")
	private String pid;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序", required = true)
	@TableField("sort")
	private Integer sort;
	/**
	 * 等级
	 */
	@ApiModelProperty(value = "等级", required = true)
	@TableField("level")
	private Integer level;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@TableField("remarks")
	private String remarks;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	protected Serializable pkVal() {
		return null;
	}

	@Override
	public String toString() {
		return "Role{" + ", id=" + id + ", name=" + name + ", pid=" + pid + ", sort=" + sort + ", level=" + level + ", remarks=" + remarks + "}";
	}
}
